﻿using Landpy.CruiseControlNet.FacadeInterface.ConfigurationModule;
using System;

namespace Landpy.CruiseControlNet.FacadeInterface.RepositoryModule
{
    public interface IPermissionRepository
    {
        RolePermission GetInternalRolePermissionById(InternalSecurity internalSecurity, Guid id);
        UserPermission GetInternalUserPermissionById(InternalSecurity internalSecurity, Guid id);
        RolePermission GetProjectRolePermissionById(Project project, Guid id);
        UserPermission GetProjectUserPermissionById(Project project, Guid id);
        RolePermission GetProjectRolePermissionById(CruiseControl cruiseControl, Guid projectId, Guid id);
        UserPermission GetProjectUserPermissionById(CruiseControl cruiseControl, Guid projectId, Guid id);
    }
}
